package com.park.dailytool.service;


import com.park.dailytool.data.dao.jpa.local.EveryDayAmountJpaDao;
import com.park.dailytool.data.dao.jpa.local.OrderPayJpaDao;
import com.park.dailytool.data.pojo.model.local.EveryDayAmount;
import com.park.dailytool.data.pojo.model.local.OrderPay;
import com.park.dailytool.enums.OrderType;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author huangding
 * @description
 * @date 2019/1/21 13:04
 */
@Service
@Slf4j
public class LinHaiAmountService {

    @Autowired
    private OrderPayJpaDao orderPayJpaDao;

    @Autowired
    private EveryDayAmountJpaDao everyDayAmountJpaDao;

    private final int linhai_merCode=100000;



    public List<OrderPay> getOrderListByType(Integer type, LocalDateTime startDate,
        LocalDateTime endDate) {
        return orderPayJpaDao.findByPayDateAll(type, startDate, endDate);
    }

}
